package com.business.webform.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.business.base.BaseDao;

@Service("menuService")
@Transactional
public class MenuService {

	@Autowired
	private BaseDao baseDao;
	
	private List<Map<String,Object>> Select(Map<String,Object> search)
	{
		return baseDao.selectList("menu.select", search);
	}
	
	public List<Map<String,Object>> SelectByParentId(String parentId)
	{
		Map<String,Object> search=new HashMap<String, Object>();
		search.put("parentId", parentId);
		
		return Select(search);
	}
	
	
}
